#ifndef ARCH_H__
#define ARCH_H__

struct Context {
  // the order of these members is fixed to match trap.S
  uintptr_t gpr[32], cause, status, epc;
};

#define GPR1 gpr[17]  // a7
#define GPR2 gpr[0]
#define GPR3 gpr[0]
#define GPR4 gpr[0]
#define GPRx gpr[0]
#endif

